package com.bailan.foreat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


/**
 * <p>
 * 
 * </p>
 *
 * @author ste
 * @since 2023-02-21 07:50:43
 */
@Data
@TableName("t_store")
public class Store {

    /**
     * 店铺id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 店铺名称
     */
    @TableField("store_name")
    private String storeName;

    /**
     * 店铺介绍
     */
    @TableField("detail")
    private String detail;

    /**
     * 所属商家id
     */
    @TableField("seller_id")
    private Integer sellerId;

    /**
     * 经营类型id(废弃~)
     */
    @TableField("store_type")
    private Integer storeType;

    /**
     * 状态(0.营业1.休业)
     */
    @TableField("status")
    private Integer status;

    /**
     * 店铺地址id
     */
    @TableField("address_id")
    private Integer addressId;

    /**
     * 店铺图片
     */
    @TableField("store_img")
    private String storeImg;

    public Store() {
    }

    public Store(String storeName, String detail, Integer sellerId, Integer storeType, Integer status, Integer addressId, String storeImg) {
        this.storeName = storeName;
        this.detail = detail;
        this.sellerId = sellerId;
        this.storeType = storeType;
        this.status = status;
        this.addressId = addressId;
        this.storeImg = storeImg;
    }

    public Store(Integer id, String storeName, String detail, Integer sellerId, Integer storeType, Integer status, Integer addressId, String storeImg) {
        this.id = id;
        this.storeName = storeName;
        this.detail = detail;
        this.sellerId = sellerId;
        this.storeType = storeType;
        this.status = status;
        this.addressId = addressId;
        this.storeImg = storeImg;
    }
}
